﻿using Assets.Script.HelpSystem.AtkSystem.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Assets.Script.HelpSystem.AtkSystem.Config
{
    public static class AtkInfoDic
    {
        private static Dictionary<string, AtkInfo> dic=new Dictionary<string, AtkInfo>();

        public static AtkInfo GetInfo(string name)
        {
            AtkInfo atkInfo;
            dic.TryGetValue(name, out atkInfo);
            return atkInfo;
        }

        static AtkInfoDic()
        {
            dic.Add("ShootNormal", new AtkInfo()
            {
                AtkName = "普通棒球",
                AtkEpl = "射出一颗棒球,棒球造成100%的伤害",
                BullteName = "UmbrellaBullet",
                ICOName = "GunN",
                ColdTime = 1,
                NeedMana = 0,
                ClassName = "AtkWayShootNormal"
            });

            dic.Add("GunS", new AtkInfo()
            {
                AtkName = "超级棒球",
                AtkEpl = "向四周发射棒球,每颗棒球造成100%的伤害",
                BullteName = "UmbrellaBullet",
                ICOName = "GunS",
                ColdTime = 5,
                NeedMana = 10,
                ClassName = "AtkWayGunSpecial"
            });

            dic.Add("Healing", new AtkInfo()
            {
                AtkName = "治愈光环",
                AtkEpl = "释放出一个持续10秒的光环，在光环内的玩家每秒可恢复释放者50%攻击力的血量",
                BullteName = "Healing",
                ICOName = "Healing",
                ColdTime = 20,
                NeedMana = 10,
                ClassName = "AtkWayGunHealing"
            });


            dic.Add("KnifeN", new AtkInfo()
            {
                AtkName = "菜刀连发",
                AtkEpl = "连续释放出两把个菜刀，菜刀会自动跟踪敌人，每把菜刀造成80%的伤害",
                BullteName = "Knife",
                ICOName = "Healing",
                ColdTime = 1,
                NeedMana = 0,
                ClassName = "AtkWayKnifeNormal"
            });

            dic.Add("KnifeS", new AtkInfo()
            {
                AtkName = "菜刀风暴",
                AtkEpl = "连续释放出一片小菜刀，菜刀会自动跟踪敌人，每把菜刀造成50%的伤害",
                BullteName = "Knife",
                ICOName = "Healing",
                ColdTime = 20,
                NeedMana = 10,
                ClassName = "AtkWayKnifeSpecial"
            });
        }
    }
}
